package com.edu.base.ums.metadata.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 元数据库
支持元数据字段配置，包含一下元数据
1、单层级字段
2、多层级字段
3、多层级末级对象 sysm_metadata
 * 
 * @author admin
 * @date 2021-05-11
 */
public class SysmMetadata extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 编码前缀 */
    @Excel(name = "编码前缀")
    private String numCode;

    /** 表 */
    @Excel(name = "表")
    private String dTable;

    /** 字段 */
    @Excel(name = "字段")
    private String keyField;

    /** 多字段 */
    @Excel(name = "多字段")
    private String fields;

    /** 层级 */
    @Excel(name = "层级")
    private Long multilayer;

    /** 是否包含值 */
    @Excel(name = "是否包含值")
    private String isIncludeValue;

    /** 启用禁用 */
    @Excel(name = "启用禁用")
    private String onoff;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除标记 */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNumCode(String numCode) 
    {
        this.numCode = numCode;
    }

    public String getNumCode() 
    {
        return numCode;
    }
    public void setdTable(String dTable) 
    {
        this.dTable = dTable;
    }

    public String getdTable() 
    {
        return dTable;
    }
    public void setKeyField(String keyField) 
    {
        this.keyField = keyField;
    }

    public String getKeyField() 
    {
        return keyField;
    }
    public void setFields(String fields) 
    {
        this.fields = fields;
    }

    public String getFields() 
    {
        return fields;
    }
    public void setMultilayer(Long multilayer) 
    {
        this.multilayer = multilayer;
    }

    public Long getMultilayer() 
    {
        return multilayer;
    }
    public void setIsIncludeValue(String isIncludeValue) 
    {
        this.isIncludeValue = isIncludeValue;
    }

    public String getIsIncludeValue() 
    {
        return isIncludeValue;
    }
    public void setOnoff(String onoff) 
    {
        this.onoff = onoff;
    }

    public String getOnoff() 
    {
        return onoff;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("numCode", getNumCode())
            .append("dTable", getdTable())
            .append("keyField", getKeyField())
            .append("fields", getFields())
            .append("multilayer", getMultilayer())
            .append("isIncludeValue", getIsIncludeValue())
            .append("remark", getRemark())
            .append("onoff", getOnoff())
            .append("createDate", getCreateDate())
            .append("createBy", getCreateBy())
            .append("updateDate", getUpdateDate())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
